﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_21_2021
{
    class tastNPC:NPC
    {
        private string taskInfo;
        public string TaskInfo
        {
            get { return this.taskInfo; }
            set { this.taskInfo = value; }
        }

        public tastNPC(string name, NPCType type,string taskInfo):base(name,type)
        {
            this.taskInfo = taskInfo;
        }
        public override void Speak()
        {
            Console.WriteLine("你能帮帮我吗？NPC：{0},任务：{1}",this.Name,this.taskInfo);
        }
    }
}
